fetch("/api/login", {
    method: "post",
    headers: {
        "content-type": "application/json"
    },
    body: JSON.stringify({
        account: "qwewq",
        pwd: "1234"
    })
}).then(r => r.json()).then(res => console.log(res))